﻿namespace Purest.SqlSugar.Entity;

/// <summary>
/// 商户
/// </summary>
[SugarTable("merchant")]
public partial class MerchantEntity : BaseEntity
{
    /// <summary>
    /// 代理id
    /// </summary>
    public long AgentId { get; set; }
    /// <summary>
    /// 商户号
    /// </summary>
    public string Name { get; set; }
    /// <summary>
    /// 登录密码
    /// </summary>
    public string Password { get; set; }
    /// <summary>
    /// api秘钥
    /// </summary>
    public string ApiToken { get; set; }
    /// <summary>
    /// 商户余额
    /// </summary>
    public decimal Balance { get; set; }
    /// <summary>
    /// 代收费率
    /// </summary>
    public decimal PayFee { get; set; }
    /// <summary>
    /// 代收单笔
    /// </summary>
    public decimal PayFeePer { get; set; }
    /// <summary>
    /// 代付费率
    /// </summary>
    public decimal CollectFee { get; set; }
    /// <summary>
    /// 代付单笔
    /// </summary>
    public decimal CollectFeePer { get; set; }
    /// <summary>
    /// 代付优先级
    /// </summary>
    public int CollectPriority { get; set; }
    /// <summary>
    /// 拉单页面是否显示手机号
    /// </summary>
    public bool PayShowPhone { get; set; }
    /// <summary>
    /// 谷歌验证器秘钥
    /// </summary>
    public string GoogleAuthSecret { get; set; }
    /// <summary>
    /// 状态
    /// </summary>
    public MerchantStatusEnum Status { get; set; }
}

